home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 52
/
Volume 52 - JOGO DISK .iso
/
Games
/
shopdrop.swf
/
scripts
/
__Packages
/
StackPackage.as
< prev
Wrap
Text File
|
2007-09-27
|
531b
|
23 lines
class StackPackage extends MovieClip
{
var nTypes = 20;
static var packageHeight = 30;
function StackPackage()
{
super();
this.nObject = Math.ceil(Math.random() * this.nTypes);
}
function update(nElapsed)
{
this.m.y += smashing.Phys.gr * nElapsed * 5;
this._x += this.m.x * nElapsed;
this._y += this.m.y * nElapsed;
var _loc2_ = Player.floor;
if(this._y > _loc2_)
{
this._y = _loc2_;
this.m.y = - this.m.y;
}
}
}